File tree 1 file changed +9
-9
lines changed 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- import js from "@eslint/js" ;
2
- import ts from "typescript-eslint" ;
3
- import svelte from "eslint-plugin-svelte" ;
1
+ import eslint from "@eslint/js" ;
4
2
import prettier from "eslint-config-prettier" ;
3
+ import svelte from "eslint-plugin-svelte" ;
5
4
import globals from "globals" ;
6
- /** @type {import('eslint').Linter.Config[] } */
7
- export default [
8
- js . configs . recommended ,
9
- ...ts . configs . recommended ,
5
+ import tseslint from "typescript-eslint" ;
6
+
7
+ export default tseslint . config (
8
+ eslint . configs . recommended ,
9
+ ...tseslint . configs . recommended ,
10
10
...svelte . configs [ "flat/recommended" ] ,
11
11
prettier ,
12
12
...svelte . configs [ "flat/prettier" ] ,
@@ -22,11 +22,11 @@ export default [
22
22
files : [ "**/*.svelte" ] ,
23
23
languageOptions : {
24
24
parserOptions : {
25
- parser : ts . parser ,
25
+ parser : tseslint . parser ,
26
26
} ,
27
27
} ,
28
28
rules : {
29
29
"svelte/no-inline-styles" : "error" ,
30
30
} ,
31
31
} ,
32
- ] ;
32
+ ) ;
You can’t perform that action at this time.
0 commit comments